const {createProxyMiddleware:proxy} = require('http-proxy-middleware')

// app 对象就是express 对象
module.exports = app => {
    app.use('/api',proxy({
        target:'https://api.iynn.cn/film',
        changeOrigin:true
    }))
}

